package cn.signalpha.modules.shop.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.Date;

/**
 * 实体类
 *
 * @author suguangjun
 */
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@TableName("shop_goods_comment")
@ApiModel(value = "GoodsComment对象", description = "GoodsComment对象")
public class GoodsComment implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.ASSIGN_ID)
	@JsonSerialize(using = ToStringSerializer.class)
    private Long id;

	@ApiModelProperty(value = "商户id")
	private Long sellerId;

    @ApiModelProperty(value = "商品id")
    private Long goodsId;

	@ApiModelProperty(value = "商品名称")
	private String goodsName;

	@ApiModelProperty(value = "商品图片")
	private String goodsImg;

	@ApiModelProperty(value = "商品规格")
	private String goodsSpec;

    @ApiModelProperty(value = "用户id")
    private Long userId;

    @ApiModelProperty(value = "用户昵称")
    private String userNickName;

    @ApiModelProperty(value = "用户头像")
    private String userAvatar;

	@ApiModelProperty(value = "是否显示")
	private Integer isShow;

	@ApiModelProperty(value = "评价内容")
    private String content;

    @ApiModelProperty(value = "图片")
    private String img;

	@ApiModelProperty(value = "回复内容")
	private String reply;

	@ApiModelProperty(value = "商品评分")
	private Integer goodsScore;

    @ApiModelProperty(value = "创建时间")
    private Date createTime;

}
